package com.love.netty.util;

import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName: UriUtils
 * @Description:
 * @Author: wuj
 * @Date: 2021-07-05 14:51
 **/
public class UriUtils {


    public static String getParam(String uri, String name) {
        if(StringUtils.isNotBlank(uri)){
            int i = uri.indexOf("?");
            String substring = uri.substring(i+1, uri.length());
            String[] split = substring.split("=");
            return split[1];
        }else{
            return  null;
        }
    }
}
